<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>编号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="编号" ng-model="param.data.code" required ng-readonly="param.type=='update'" ng-maxlength="6"
						 ng-minlength="6" ng-pattern="/^[A-Z][A-Z0-9]*$/" />
					</div>
					<p ng-show="param.type=='insert'">长度为6位，开头必须为大写字母，与数字组合，唯一不可重复。例:H12345</p>
					<p ng-show="param.type=='update'">不可修改。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>名称：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="名称" ng-model="param.data.name" ng-maxlength="100" required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">地址：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="地址" ng-model="param.data.address" ng-maxlength="100">
					</div>
					<p>选填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">联系人：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="联系人" ng-model="param.data.contact" ng-maxlength="100">
					</div>
					<p>选填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">手机号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="手机号" ng-model="param.data.phone" ng-maxlength="100" ng-pattern="/^[]|(1[3|4|5|7|8][0-9]\d{8})$/">
					</div>
					<p>11位手机号，选填。</p>
				</div>
				<div class="form-group" ng-show="param.type == 'update'">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>是否启用：</label>
					<div class="col-sm-5" style="margin-top: 5px;">
						<label>
							<input type="radio" name="valid" value="true" ng-model="param.data.valid" ng-checked="param.data.valid==true">是</label>
						<label style="margin-left: 50px">
							<input type="radio" name="valid" value="false" ng-model="param.data.valid" ng-checked="param.data.valid==false">否</label>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>